from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

chrome_browser = webdriver.Chrome()
chrome_browser.get("URL")

try:
    target_element = WebDriverWait(chrome_browser, 5).\
    until(EC.presence_of_element_located((By.ID, "element_id")))
finally:
    chrome_browser.quit()
